package br.com.others.guj.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class LinkPK implements java.io.Serializable {

	private static final long serialVersionUID = 5114770736427051887L;

	@Column
	private long connectionId;
	@Column
	private long dotFrom;
	@Column
	private long dotTo;

	/**
	 * @param linkId
	 * @param dotFrom
	 * @param dotTo
	 */
	public LinkPK(long connectionId, long dotFrom, long dotTo) {
		this.connectionId = connectionId;
		this.dotFrom = dotFrom;
		this.dotTo = dotTo;
	}
	/**
	 * @return the connectionId
	 */
	public long getConnectionId() {
		return connectionId;
	}

	/**
	 * @param connectionId
	 *            the connectionId to set
	 */
	public void setConnectionId(long connectionId) {
		this.connectionId = connectionId;
	}

	/**
	 * @return the dotFrom
	 */
	public long getDotFrom() {
		return dotFrom;
	}

	/**
	 * @param dotFrom
	 *            the dotFrom to set
	 */
	public void setDotFrom(long dotFrom) {
		this.dotFrom = dotFrom;
	}

	/**
	 * @return the dotTo
	 */
	public long getDotTo() {
		return dotTo;
	}

	/**
	 * @param dotTo
	 *            the dotTo to set
	 */
	public void setDotTo(long dotTo) {
		this.dotTo = dotTo;
	}

}
